//
//  afn_api.h
//  ziLu_ios
//
//  Created by mac on 16/3/17.
//  Copyright © 2016年 mac. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFNetworking.h"
@interface afn_api : NSObject
// 请求数据的封装
+(void)MyApi:(NSDictionary *)dic url:(NSString *)url success:(void (^)(id responseObject))success failure:(void (^)(NSError *error))fail;
// 上传图片的封装
+(void)MyPhotoApi:(NSDictionary *)dic url:(NSString *)url photo:(NSData*)data  success:(void (^)(NSURLSessionDataTask *task, id responseObject))success  failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure;


@end
